Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move images to assets directory #1506

Open
wants to merge 39 commits into
base: dev
Choose a base branch
from
Open

Conversation

goldenmaya
Copy link
Contributor

@goldenmaya goldenmaya commented Dec 18, 2024

@goldenmaya goldenmaya requested a review from a team as a code owner December 18, 2024 07:59
@goldenmaya goldenmaya requested review from Andrew-Orlov, ivan-kalachikov and NaMax66 and removed request for a team December 18, 2024 07:59
@goldenmaya goldenmaya marked this pull request as draft December 18, 2024 07:59
@goldenmaya goldenmaya marked this pull request as ready for review December 18, 2024 09:32
@@ -175,9 +176,11 @@ function print() {
.map((el) => el.outerHTML)
.join("");

const logoImage = loadImage(logoUrl.value!);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove !

@@ -0,0 +1,11 @@
export function loadImage(fileName: string): string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fileName?: string

return new URL(`/client-app/assets/icons/basic/${name}.svg`, import.meta.url).href ?? "";
}

export function isFilenameOnly(src: string): boolean {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add unit test

}

export function loadIcon(name?: string): string {
return new URL(`/client-app/assets/icons/basic/${name}.svg`, import.meta.url).href ?? "";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependent from client-app.
add task to make it init phase settings. or move all images to ui kit folder

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goldenmaya goldenmaya requested a review from NaMax66 December 19, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants